package xyz.codej.websocket.netty.server.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName: NettyServerConfig
 * @Description TODO
 * @Author 王华君
 * @Date 2020/4/6 10:53 上午
 * @VERSION 1.0
 */
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "netty.server")
public class NettyServerConfig {
    @Value("${address:localhost}")
    String address;
    @Value("${port:8083}")
    private int port;
}
